<div class="pageContent">
    <form method="post"
        action="${rc.getContextPath()}/manage/pullStrategy/savePullStrategy"
        class="pageForm required-validate"
        onsubmit="return validateCallback(this,dialogAjaxDone);">
        <div class="pageFormContent" >
            <input type="hidden" name="navTabId" value="${navTabId!''}">
            <input type="hidden" name="id" <#if pattern=='modify'>value="${pullStrategy.pullStrategyCode!''}"</#if>">
            <fieldset>
                <dl>
                    <dt style="width: 120px;"><@label key="pullStrategyCode.C,colon">拉动策略编号：</@label></dt>
                    <dd>
                        <input name="pullStrategyCode" size="22" type="text" maxlength="20" 
                        class="required alphanumeric toUp"  warn="<@label key='pullStrategyCode.C,alreadyExists'>拉动策略编号已存在</@label>"    
                            value="${pullStrategy.pullStrategyCode!''}"   
                        <#if pattern=="modify">
                             readonly="readonly"
                        <#else>
                        	 remote="${rc.getContextPath()}/manage/pullStrategy/validatePullStrategy"                          
                        </#if>                   
                        />
                    </dd>
                </dl>
                <dl>
                    <dt style="width: 120px;"><@label key="pullStrategyText.C,colon">拉动策略描述：</@label></dt>
                    <dd>
                        <input name="pullStrategyText" size="22" type="text" maxlength="60" class="required" 
                        value="${pullStrategy.pullStrategyText!''}" />
                    </dd>
                </dl>
                <dl>
                    <dt style="width: 120px;"><@label key="requirementTriggerMode.C,colon">需求触发策略:</@label></dt>
                    <dd>
                    	<select name="requirementTriggerModeCode">
		                    <#if requirementTriggerModes??>
		                        <#list requirementTriggerModes as requirementTriggerMode>
		                            <option value="${requirementTriggerMode.requirementTriggerModeCode!''}" <#if pullStrategy.requirementTriggerModeCode?? && pullStrategy.requirementTriggerModeCode == requirementTriggerMode.requirementTriggerModeCode> selected</#if> >
		                            ${requirementTriggerMode.requirementTriggerModeText!''}</option>
		                        </#list>
		                    </#if>
		                </select>                        
                    </dd>
                </dl>                
                <dl>
                    <dt style="width: 120px;"><@label key="distributionTriggerMode.C,colon">配送触发策略：</@label></dt>
                    <dd>
                    	<select name="distributionTriggerModeCode">
		                    <#if distributionTriggerModes??>
		                        <#list distributionTriggerModes as distributionTriggerMode>
		                            <option value="${distributionTriggerMode.distributionTriggerModeCode!''}" <#if pullStrategy.distributionTriggerModeCode?? && pullStrategy.distributionTriggerModeCode == distributionTriggerMode.distributionTriggerModeCode> selected</#if> >
		                            ${distributionTriggerMode.distributionTriggerModeText!''}</option>
		                        </#list>
		                    </#if>
		                </select>                        
                    </dd>
                </dl>                
                <dl class="defectLookup">
                    <dt style="width: 120px;"><@label key="lockFlag.C,colon">状态</@label></dt>
                    <dd>
                        <input type="checkbox" name="lockFlag" value="1"<#if (pullStrategy.lockFlag)?? && (pullStrategy.lockFlag == 1)> checked="true"</#if>><@label key="lock.C">锁定</@label>

                    </dd>
                </dl>                
            </fieldset>            
        </div>
        
        <#if pattern=="modify">
			<div class="createInfo" style="  height: 44px;padding: 5px 0px 5px 10px;">
			    <label class="time"><@label key="createDateTime.C,colon">创建时间：</@label><#if (pullStrategy.createDateTime)??>${pullStrategy.createDateTime?string("yyyy-MM-dd HH:mm:ss")}</#if></label>
			    <label class="user"><@label key="createUser.C,colon">创建人：</@label><#if (pullStrategy.createUser)??>${pullStrategy.createUser}</#if></label> 
			    <label class="time"><@label key="modifyDateTime.C,colon">修改时间</@label><#if (pullStrategy.modifyDateTime)??>${pullStrategy.modifyDateTime?string("yyyy-MM-dd HH:mm:ss")}</#if></label>
		    	<label class="user"><@label key="modifyUser.C,colon">修改人：</@label><#if (pullStrategy.modifyUser)??>${pullStrategy.modifyUser}</#if></label> 
			</div>                         
		</#if> 
       
        <div class="formBar">
            <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit"><@label key="save.B">保存</@label></button>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="buttonActiveGrey">
                            <div class="buttonContent">
                                    <button type="button" class="close" ><@label key="cancel.B">取消</@label></button>
                            </div>
                        </div>
                    </li>
            </ul>
        </div>
    </form>
</div>
